How is the better way to resolve a ternary that if true return false